package ntu.p2p.dht.test;

import java.io.IOException;

import rice.p2p.commonapi.Endpoint;
import rice.p2p.commonapi.rawserialization.InputBuffer;
import ntu.p2p.dht.DHTContent;
import ntu.p2p.dht.DHTContentDeserializer;

public class ContentDeserializer implements DHTContentDeserializer {
	
	public ContentDeserializer() {
	}
	@Override
	public DHTContent deserialize(final InputBuffer buf, Endpoint endpoint) {
		
		try {
			return MyPastContent.build(buf, endpoint);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}

}
